const Joi = require('joi')

// role_auth模块验证规则 
// 新增
const userRoleAddSchema = Joi.object({
    role_id: Joi.number(),
    user_id: Joi.number()
})

// 查询
const userRoleListSchema = Joi.object({
    id: Joi.number(),
    role_id: Joi.number(),
    user_id: Joi.number()
})

// 删除  
const userRoleDeleteSchema = Joi.object({
    ids: Joi.array() 
})

exports.userRoleAdd = userRoleAddSchema 
exports.userRoleDelete = userRoleDeleteSchema 
exports.userRoleList = userRoleListSchema 
